import { Todo } from './Todo.js';
import { Component } from '@angular/core';
@Component({
    selector: 'app-todo',
    templateUrl: './Todo.component.html',
    styleUrls: []
  })
export class AppTodo {
    title = 'Todolist';
    text:string = 'asd';
    todolist:Todo[] = [
        {id:1,name:'okok'} 
    ]
    addTodo = ()=>{
          this.todolist.push({id:2,name:this.text})  
          this.text='';
    }
  }

